﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace _3D_Game
{
    class Bullet
    {
        public Vector3 position1;
        public Vector3 direction1;
        public float speed;
        public bool isActive;
        public void Update(float delta)
        {
            position1 += direction1 * speed *
                        ParticleSettings.BulletSpeedAdjustment * delta;
            if (position1.X > ParticleSettings.PlayfieldSizeX ||
                position1.X < -ParticleSettings.PlayfieldSizeX ||
                position1.Y > ParticleSettings.PlayfieldSizeY ||
                position1.Y < -ParticleSettings.PlayfieldSizeY)
                isActive = false;
        }
    }
    }

